import request from './request';

export function getFamilyNewsList(params) {
  return request({ url: '/api/v1/family-news', method: 'get', params });
}
export function getFamilyNewsDetail(id) {
  return request({ url: `/api/v1/family-news/${id}`, method: 'get' });
}
export function addFamilyNews(data) {
  return request({ url: '/api/v1/family-news', method: 'post', data });
}
export function updateFamilyNews(data) {
  return request({ url: `/api/v1/family-news/${data.id}`, method: 'put', data });
}
export function deleteFamilyNews(id) {
  return request({ url: `/api/v1/family-news/${id}`, method: 'delete' });
} 